package com.example.is432_teamlondon_2013;




import android.os.Bundle;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.view.Menu;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;


public class MainActivity extends Activity {
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	

        //setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

		WebView myWebView = (WebView) findViewById(R.id.webview);
		
		
		myWebView.setWebChromeClient(new WebChromeClient()); 

		myWebView.setWebViewClient(new WebViewClient());
		myWebView.getSettings().setUserAgentString("Chrome");
		myWebView.setVerticalScrollBarEnabled(false);
	    myWebView.setHorizontalScrollBarEnabled(false);
	    myWebView.getSettings().setLoadWithOverviewMode(true); 
	    myWebView.getSettings().setUseWideViewPort(true);
		WebSettings webSettings = myWebView.getSettings();
		webSettings.setBuiltInZoomControls(false);
		webSettings.setJavaScriptEnabled(true);
		webSettings.setAllowFileAccess(true);

	
		myWebView.loadUrl("http://london-cms-pss.appspot.com/mobile/home.html");

	}
	/*
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;

	}
	*/
	
 

}
